import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
    {
        path: '/',
        name:'Main',
        redirect:'login',
        component: () => import('../views/Main.vue'),
        children: [
            {
                path:'/login',
                name:'login',
                component:()=>import('../views/login/login.vue')
            },
            {
                path: '/center',
                name: 'center',
                component: () => import('../views/center/Center.vue')
            },
            {
                path: '/details',
                name: 'details',
                component: () => import('../views/center/Details.vue')
            },
            {
                path: '/group',
                name: 'group',
                component: () => import('../views/group/Group.vue')
            },
         
            
        ]
    }
]
const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router